package simulator.enums;

public enum Loop
{
	FAR("far"),
	NEAR("close"),
	NONE("none");
	
	private String _specStr;
	
	private Loop(String spec)
	{
		_specStr = spec;
	}
	
	public String getSpecString()
	{
		return _specStr;
	}
	
	public static Loop fromString(String str)
	{
		if("far".equalsIgnoreCase(str))
			return FAR;
		if("close".equalsIgnoreCase(str))
			return NEAR;
		
		// unrecognized: return 'none'
		return NONE;
	}
}
